﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using TyMES.Model.BaseInformation;
using TyMES.Model;

namespace TyMES.ViewModel.BaseInformation.PersonVMs
{
    public partial class PersonBatchVM : BaseBatchVM<Person, Person_BatchEdit>
    {
        public PersonBatchVM()
        {
            ListVM = new PersonListVM();
            LinkedVM = new Person_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class Person_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._Person._PersonCode")]
        public string PersonCode { get; set; }
        [Display(Name = "_Model._Person._PersonName")]
        public string PersonName { get; set; }
        [Display(Name = "_Model._Person._PhoneNumber")]
        public string PhoneNumber { get; set; }
        [Display(Name = "_Model._Person._Gender")]
        public PersonGenderEnum? Gender { get; set; }
        [Display(Name = "_Model._Person._Address")]
        public string Address { get; set; }
        [Display(Name = "_Model._Person._EmpSkills")]
        public string EmpSkills { get; set; }
        [Display(Name = "_Model._Person._LineCode")]
        public string LineCodeId { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}